package com.wxc.exception;

import com.wxc.vo.REnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends RuntimeException{
    private final REnum rEnum;

    public BusinessException(REnum rEnum) {
        super(rEnum.getMessage());
        this.rEnum = rEnum;
    }
}
